package com.bdqn.demo.comm;

import com.bdqn.demo.service.DomeService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/hello")
@Controller
public class Test {
   @Resource
   private KtjiaoyuInfo ktjiaoyuInfo;
    @Resource
    private DomeService domeService ;
    @ResponseBody
    @GetMapping("/h")
    public String h(){
        return domeService.sayHello()+ktjiaoyuInfo.getName();
    }

}
